<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/images/favicon.ico" />
<title>SolarUnit</title>
<style>
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('images/login_back.png'); /* 默认横屏背景图 */
    /* background-size: contain; */
    background-size: 100% auto; /* 背景图宽度铺满 */
    background-color: #dceaff63;
    background-repeat: no-repeat;
    background-position: center;
}

.popup {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    word-wrap: break-word; /* 允许文字换行 */
    height: auto; /* 高度自适应 */
    max-height: 80vh; /* 设置最大高度为视口高度的80% */
    max-width: 50vw; /* 设置最大宽度为视口宽度的50% */
    overflow-y: auto; /* 添加垂直滚动条 */
}



h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

/* 在小屏幕设备上显示竖屏背景图 */
/* @media screen and (max-width: 768px) {
    body {
        background-image: url('images/login_back.png');
    }

    .popup {
        width: 80%;
    }
} */
</style>
</head>
<body>
<div class="popup">
    <!-- <h2>欢迎访问我们的网站！</h2> -->
    <p class="result"></p>
    <button class="href" onclick='openSolarUnit()'></button>
</div>
<script src="js/jquery-1.12.1.js"></script>
<script src="js/index.js"></script>
</body>
</html>
